using System;
using System.ComponentModel;
using System.Windows.Forms;

namespace ExperimentRuleEditor
{
	public class Expression_ColHeader : Form
	{
		private IContainer components;

		private TextBox tbText;

		private Button btCancel;

		private Button btOk;

		public string ColHeaderName
		{
			get
			{
				return tbText.Text.Trim();
			}
		}

		protected override void Dispose(bool disposing)
		{
			if (disposing && components != null)
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		private void InitializeComponent()
		{
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ExperimentRuleEditor.Expression_ColHeader));
			this.tbText = new System.Windows.Forms.TextBox();
			this.btCancel = new System.Windows.Forms.Button();
			this.btOk = new System.Windows.Forms.Button();
			base.SuspendLayout();
			resources.ApplyResources(this.tbText, "tbText");
			this.tbText.Name = "tbText";
			resources.ApplyResources(this.btCancel, "btCancel");
			this.btCancel.Name = "btCancel";
			this.btCancel.UseVisualStyleBackColor = true;
			this.btCancel.Click += new System.EventHandler(btCancel_Click);
			resources.ApplyResources(this.btOk, "btOk");
			this.btOk.Name = "btOk";
			this.btOk.UseVisualStyleBackColor = true;
			this.btOk.Click += new System.EventHandler(btOk_Click);
			base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
			resources.ApplyResources(this, "$this");
			base.Controls.Add(this.tbText);
			base.Controls.Add(this.btCancel);
			base.Controls.Add(this.btOk);
			base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
			base.MaximizeBox = false;
			base.MinimizeBox = false;
			base.Name = "Expression_ColHeader";
			base.ShowIcon = false;
			base.ShowInTaskbar = false;
			base.ResumeLayout(false);
			base.PerformLayout();
		}

		public Expression_ColHeader(string colHeaderString)
		{
			InitializeComponent();
			tbText.Text = colHeaderString;
		}

		private void btOk_Click(object sender, EventArgs e)
		{
			base.DialogResult = DialogResult.OK;
			Close();
		}

		private void btCancel_Click(object sender, EventArgs e)
		{
			base.DialogResult = DialogResult.Cancel;
			Close();
		}
	}
}
